local sk__shendao_active = fk.CreateSkill {

  name = "sk__shendao_active",

  tags = {},

}



sk__shendao_active:addEffect("active", {
  name = "sk__shendao_active",
  min_card_num = 0,
  max_card_num = 1,
  min_target_num = 0,
  max_target_num = 1,
  card_filter = function(self, player, to_select, selected)
    return #selected == 0 and Fk:currentRoom():getCardArea(to_select) == Player.Hand
  end,
  target_filter = function(self, player, to_select, selected, selected_cards)
    return #selected_cards == 0 and #selected == 0 and
        #to_select:getCardIds("ej") > 0
  end,
  feasible = function(self, player, selected, selected_cards)
    return #selected + #selected_cards == 1
  end,
})

return sk__shendao_active
